import requests
headers = {
    'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.3'}
url = 'https://fanyi.baidu.com/sug'
word = input('请输入你需要翻译的内容:')
data={'kw':word}
response = requests.post(url, data, headers=headers)
text = response.json()
print(text)
